package com.sinosoft.perfect.system._.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._.po.TLoginLog;
import com.sinosoft.perfect.system._.po.TRoleSystem;
import com.sinosoft.perfect.system._.po.TUnit;
import com.sinosoft.perfect.system._.po.TUser;
import com.sinosoft.perfect.system._.po.TUserImg;
import com.sinosoft.perfect.system._.vo.LoginUser;
import com.sinosoft.perfect.system._.vo.LoginWroksiteUnitValidate;

public interface ILoginDao {

	public String validateUsernamePassword(TUser tuserInfo) throws SQLException;
	
	public List<LoginWroksiteUnitValidate> queryValidateLoginWorkSiteIp(String userId) throws SQLException;
	
	public LoginUser queryUserInfo(String username) throws SQLException;
	
	public TLoginLog insertUserLoginLog(String loginIpAddress,String userMainId) throws SQLException;
	
	public List<TRoleSystem> queryUserRoleSystemsInfo(String userId) throws SQLException ;	
	
	public List<TUnit> queryUserUnitsInfo(String userId) throws SQLException;
	
	public void logoutUpdateLogInfo(String logId) throws SQLException ;
	
	public void registerLoginStatus(String loginId) throws SQLException ;
	
	public TUserImg selectLoginImgInfo(String userMainId) throws SQLException ;
}
